<div class="title">
  <h1>Editing troop</h1>
</div>

<div class="content">

  <% form_for([@army, @troop]) do |f| %>
    <%= f.error_messages %>
    <table>
      <tr>
        <td class="description"><%= f.label :unit %></td>
        <td id="name"><%= select("troop", "unit_id", Unit.find(:all).collect {|p| [p.name, p.id]}) %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :menge %></td>
        <td id="number"><%= f.text_field :menge %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label 'Verluste' %></td>
        <td id="number"><%= f.text_field :losses %></td>
      </tr>
      <tr>
      </tr>
    </table>
    <br />
    <%= f.submit "Update" %>
  <% end %>
</div>

<% content_for :navigation do %>
  <li>
    <%= link_to 'Löschen', army_troop_path(@army, @troop), :confirm => 'Are you sure?', :method => :delete %>
  </li>
  <li>
    <%= link_to 'Armeen', army_troops_path(@army) %>
  </li>
<% end %>